package com.educatioin.manage.web.studytours.repository;

import com.educatioin.manage.web.studytours.po.StudyToursProductPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

/**
 * Created by zhangchen on 2018/3/5.
 */
@RepositoryRestResource(collectionResourceRel = "studyToursProductRepository", path = "studyToursProductRep")
public interface StudyToursProductRepository extends JpaSpecificationExecutor<StudyToursProductPo>, PagingAndSortingRepository<StudyToursProductPo, Long> {

    StudyToursProductPo findByCode(String code);
}
